
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>DHCP · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="dns.html" />
    
    
    <link rel="prev" href="ACL.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Welcome
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">数据通信</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../base/basic.html">
            
                <a href="../base/basic.html">
            
                    
                    数据通信基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../base/network_and_protocol.html">
            
                <a href="../base/network_and_protocol.html">
            
                    
                    各类网络协议
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">VRP操作系统</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../vrp-system/vrp_basic.html">
            
                <a href="../vrp-system/vrp_basic.html">
            
                    
                    华为VRP操作系统讲解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../vrp-system/aaa.html">
            
                <a href="../vrp-system/aaa.html">
            
                    
                    aaa认证系统
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">交换技术</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../switch/EthernetSwitch.html">
            
                <a href="../switch/EthernetSwitch.html">
            
                    
                    Ethernet交换
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">路由技术</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../router/iprouter.html">
            
                <a href="../router/iprouter.html">
            
                    
                    IP路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../router/ospf.html">
            
                <a href="../router/ospf.html">
            
                    
                    OSPF
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../router/lan_tec.html">
            
                <a href="../router/lan_tec.html">
            
                    
                    广域网技术
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../router/is-is.html">
            
                <a href="../router/is-is.html">
            
                    
                    IS-IS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="../router/BGP.html">
            
                <a href="../router/BGP.html">
            
                    
                    BGP
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">服务技术</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="ACL.html">
            
                <a href="ACL.html">
            
                    
                    ACL访问控制列表
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="6.2" data-path="dhcp.html">
            
                <a href="dhcp.html">
            
                    
                    DHCP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="dns.html">
            
                <a href="dns.html">
            
                    
                    DNS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="ftp.html">
            
                <a href="ftp.html">
            
                    
                    FTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.5" data-path="http.html">
            
                <a href="http.html">
            
                    
                    HTTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.6" data-path="http.html">
            
                <a href="http.html">
            
                    
                    NTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.7" data-path="telnet.html">
            
                <a href="telnet.html">
            
                    
                    Telnet
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >DHCP</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="dhcp-dynamic-host-configuration-protocol-&#x52A8;&#x6001;&#x4E3B;&#x673A;&#x914D;&#x7F6E;&#x534F;&#x8BAE;">DHCP Dynamic Host Configuration Protocol &#x52A8;&#x6001;&#x4E3B;&#x673A;&#x914D;&#x7F6E;&#x534F;&#x8BAE;</h1>
<p>DHCP&#x662F;&#x4E3A;&#x4E86;&#x7B80;&#x5316;IP&#x8BBE;&#x7F6E;&#x800C;&#x6765;&#x7684;&#x670D;&#x52A1;, &#x5176;&#x57FA;&#x4E8E;67(&#x670D;&#x52A1;&#x7AEF;&#x53E3;), 68(&#x5BA2;&#x6237;&#x7AEF;&#x53E3;)&#x7684;UDP&#x534F;&#x8BAE;&#x901A;&#x4FE1;</p>
<h2 id="dhcp&#x5DE5;&#x4F5C;&#x6D41;&#x7A0B;">DHCP&#x5DE5;&#x4F5C;&#x6D41;&#x7A0B;</h2>
<ol>
<li><p>&#x5BA2;&#x6237;&#x7AEF;&#x63A5;&#x5165;&#x7F51;&#x7EDC;, &#x53D1;&#x9001;DHCP Discover&#x62A5;&#x6587;(Broadcast)</p>
</li>
<li><p>DHCP&#x56DE;&#x590D;DHCP Offer(&#x5355;&#x64AD;)</p>
</li>
<li><p>&#x5BA2;&#x6237;&#x673A;&#x9009;&#x62E9;&#x6700;&#x5148;&#x56DE;&#x590D;&#x7684;Offer&#x62A5;&#x6587;&#x53D1;&#x9001;DHCP Request&#x62A5;&#x6587;&#x544A;&#x77E5;&#x5168;&#x7F51;&#x81EA;&#x5DF1;&#x4F7F;&#x7528;&#x7684;IP(Broadcast)</p>
</li>
<li><p>&#x670D;&#x52A1;&#x5668;&#x56DE;&#x590D;DHCP ACK&#x62A5;&#x6587;, &#x786E;&#x8BA4;&#x5BA2;&#x6237;&#x7AEF;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;</p>
</li>
</ol>
<p><strong><em>&#x6BCF;&#x5230;&#x79DF;&#x7EA6;&#x7684;50%&#x4F1A;&#x91CD;&#x65B0;&#x83B7;&#x53D6;DHCP Offer, &#x5982;&#x679C;&#x5230;&#x79DF;&#x671F;&#x7684;87.5%&#x8FD8;&#x6CA1;&#x6536;&#x5230;Offer, &#x5219;&#x91CD;&#x65B0;&#x9009;&#x62E9;DHCP&#x670D;&#x52A1;&#x5668;</em></strong></p>
<h2 id="dhcp&#x5305;&#x542B;&#x4FE1;&#x606F;">DHCP&#x5305;&#x542B;&#x4FE1;&#x606F;</h2>
<p>&#x60F3;&#x4F7F;&#x4E00;&#x4E2A;&#x7EC8;&#x7AEF;&#x63A5;&#x5165;&#x7F51;&#x7EDC;, &#x5176;&#x9700;&#x8981;&#x4EE5;&#x4E0B;&#x53C2;&#x6570;</p>
<ul>
<li>Client IP---&#x5206;&#x914D;&#x7ED9;&#x5BA2;&#x6237;&#x7684;IP---&#x53EF;&#x89C1;</li>
<li>Subnet Mask---&#x8BE5;IP&#x7684;&#x5B50;&#x7F51;&#x63A9;&#x7801;---&#x53EF;&#x89C1;</li>
<li>Gateway---&#x8BE5;&#x5B50;&#x7F51;&#x7684;&#x7F51;&#x5173;---&#x53EF;&#x89C1;</li>
<li>DNS server---&#x6307;&#x5B9A;DNS&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;---&#x53EF;&#x89C1;</li>
<li>DHCP lease---&#x79DF;&#x7EA6;&#x65F6;&#x95F4;---&#x9690;&#x6027;</li>
</ul>
<h2 id="dhcp&#x914D;&#x7F6E;">DHCP&#x914D;&#x7F6E;</h2>
<p>&#x9996;&#x5148;&#x8981;&#x5728;&#x7CFB;&#x7EDF;&#x4E2D;&#x6253;&#x5F00;dhcp&#x670D;&#x52A1;</p>
<blockquote>
<p>dhcp enable</p>
</blockquote>
<p>&#x7136;&#x540E;&#x6839;&#x636E;&#x4E0D;&#x540C;&#x5730;&#x5740;&#x6C60;&#x914D;&#x7F6E;&#x6765;&#x8FDB;&#x884C;&#x4E0B;&#x4E00;&#x6B65;</p>
<ul>
<li><p>&#x57FA;&#x4E8E;&#x63A5;&#x53E3;&#x7684;</p>
<p>  &#x63A5;&#x53E3;&#x5730;&#x5740;&#x6C60;&#x6BD4;&#x8F83;&#x7B80;&#x5355;&#xFF0C; &#x76F4;&#x63A5;&#x5728;&#x63A5;&#x53E3;&#x4E2D;&#x58F0;&#x660E;&#x4F7F;&#x7528;&#x63A5;&#x53E3;&#x5E7F;&#x64AD;&#x57DF;&#x5373;&#x53EF;</p>
<blockquote>
<p>dhcp select interesting</p>
</blockquote>
<p>  &#x5728;&#x6B64;&#x6A21;&#x5F0F;&#x4E0B;&#xFF0C; dhcp&#x670D;&#x52A1;&#x4F1A;&#x81EA;&#x52A8;&#x6839;&#x636E;&#x5F53;&#x524D;&#x63A5;&#x53E3;&#x4FE1;&#x606F;&#x53BB;&#x751F;&#x6210;&#x5730;&#x5740;&#x6C60;</p>
<p>  &#x7BA1;&#x7406;&#x5458;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x7684;&#x53EA;&#x6709;[DNS&#x670D;&#x52A1;&#x5668;/&#x6392;&#x9664;&#x4E0D;&#x5206;&#x914D;&#x7684;&#x5730;&#x5740;/&#x79DF;&#x7EA6;]</p>
</li>
<li><p>&#x5168;&#x5C40;&#x5730;&#x5740;&#x6C60;</p>
<p>  &#x5168;&#x5C40;&#x5730;&#x5740;&#x6C60;&#x9700;&#x8981;&#x5728;&#x7CFB;&#x7EDF;&#x6A21;&#x5F0F;&#x4E0B;&#x53BB;&#x521B;&#x5EFA;</p>
<blockquote>
<p>ip pool <code>&lt;pool name&gt;</code></p>
</blockquote>
<p>  &#x5728;pool&#x4E2D;&#x5BA3;&#x544A;&#x7F51;&#x6BB5;</p>
<blockquote>
<p>network <code>&lt;subnet address&gt;</code> <code>&lt;subnet mask&gt;</code></p>
</blockquote>
<p>  &#x5BA3;&#x544A;&#x7F51;&#x5173;&#x5217;&#x8868;</p>
<blockquote>
<p>gateway-list <code>&lt;gateway list&gt;</code></p>
</blockquote>
<p>  &#x5BA3;&#x544A;dns&#x670D;&#x52A1;&#x5668;&#x5217;&#x8868;</p>
<blockquote>
<p>dns-list <code>&lt;dns list&gt;</code></p>
</blockquote>
<p>  &#x5BA3;&#x544A;&#x79DF;&#x671F;</p>
<blockquote>
<p>lease day <code>&lt;num&gt;</code> hour <code>&lt;num&gt;</code> minute <code>&lt;num&gt;</code></p>
</blockquote>
<p>  &#x518D;&#x8FDB;&#x5230;&#x63A5;&#x53E3;&#x4E2D;&#x58F0;&#x660E;&#x4F7F;&#x7528;&#x5168;&#x5C40;&#x5730;&#x5740;&#x6C60;</p>
<blockquote>
<p>dhcp select global</p>
</blockquote>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="ACL.html" class="navigation navigation-prev " aria-label="Previous page: ACL访问控制列表">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="dns.html" class="navigation navigation-next " aria-label="Next page: DNS">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"DHCP","level":"6.2","depth":1,"next":{"title":"DNS","level":"6.3","depth":1,"path":"service/dns.md","ref":"./service/dns.md","articles":[]},"previous":{"title":"ACL访问控制列表","level":"6.1","depth":1,"path":"service/ACL.md","ref":"./service/ACL.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"service/dhcp.md","mtime":"2023-07-25T01:01:16.015Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-08-05T12:56:30.066Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

